import axios from "../request";
// 游客仅绑定游客机
export const ordersbind = (userNum) => {
    return axios({
        method: 'put',
        url: `/test/orders/binding/${userNum}`,
    })
}
// 游客解除绑定游客机
export const ordersunbind = (userNum) => {
    return axios({
        method: 'put',
        url: `/test/orders/unbundle/${userNum}`
    })
}
// 游客自助绑定导游
export const selfbindingguide = (visitorNumber, userNumber) => {
    // console.log('number',visitorNumber,userNumber);
    return axios({
        method: 'post',
        // userNumber-导游工号  visitorNumber-游客机编号 
        url: `/test/orders/btvm/${visitorNumber}/${userNumber}`
    })
}
// 服务台分配导游
export const backstagedistribution = (obj) => {
    console.log('backstage', obj);
    return axios({
        method: "post",
        url: "/test/orders/btvs",
        data: obj
    })
}
// 派遣单管理
export const dispatchquery = (obj) => {
    console.log('dispat', obj);
    return axios({
        method: 'post',
        url: '/test/orders/selOrder',
        data: obj
    })
}
// 联合查询页面
export const unionquery = (obj) => {
    return axios({
        method: 'post',
        url: '/test/orders/conjunctive',
        data: obj
    })
}
// 费率表管理查看所有收费标准
export const rateslist = (currentPage,pageSize) => {
    return axios({
        method: 'post',
        url: `/test/orders/selRates`,
        data: {
            currentPage: currentPage,
            pageSize: pageSize
        }
    })
}
// 添加费率表收费标准
export const addratesinfo = (obj) => {
    return axios({
        method: 'post',
        url: '/test/orders/insertRates',
        data: obj
    })
}
// 删除费率表收费标准
export const delratesinfo = (ratesId) => {
    return axios({
        method: 'post',
        url: `/test/orders/delRates/${ratesId}`
    })
}

// 修改费率表收费标准
export const updateratesinfo = (obj) => {
    return axios({
        method: 'put',
        url: "/test/orders/updateRates",
        data: obj
    })
}
// 查询导游机信息
export const selVisitorMess=(currentPage,pageSize)=>{
    return axios({
        method:'post',
        url:'/test/orders/selVisitorMess',
        data:{
            currentPage: currentPage,
            pageSize: pageSize
        }
    })
}
// 查询导游编号信息
export const getguidenumber=()=>{
    return axios({
        method:'get',
        url:'/test/orders/selUserAndTour'
    })
}
//通过状态查询导游机的信息
export const VisitorByStatus=(visitorStatus)=>{
    console.log('vs',visitorStatus);
    return axios({
        method:'get',
        url:`/test/orders/selVisitorByStatus/${visitorStatus}`
    })
}